home *** CD-ROM | disk | FTP | other *** search
- NS4 = (document.layers) ? true : false;
- MOZ = ((document.getElementById) && !(document.all)) ? true : false;
- // <
- MSIE4 = ((document.all) && (parseInt(navigator.appVersion) >= 4)) ? true : false;
-
- // image swapping
-
- bub = new cimg("common/i/b-bub.gif", "common/i/b-bub2.gif", "");
- tri = new cimg("common/i/b-tri.gif", "common/i/b-tri2.gif", "Back to the top");
- home = new cimg("common/i/b-arrow_l.gif", "common/i/b-arrow_l2.gif", "Back home");
- contents = new cimg("common/i/b-tri.gif", "common/i/b-tri2.gif", "Down to contents");
-
- function cimg(offsrc, onsrc, alt)
- {
- this.off = new Image();
- this.off.src = offsrc;
- this.on = new Image();
- this.on.src = onsrc;
- this.alt = alt;
- }
-
- function TOn(curobj, type)
- {
- folder = (MOZ == true) ? curobj.firstChild : document.all[curobj.sourceIndex + 1];
-
- folder.src = eval(type).on.src;
- window.status = eval(type).alt;
- }
-
- function TOff(curobj, type)
- {
- folder = (MOZ == true) ? curobj.firstChild : document.all[curobj.sourceIndex + 1];
-
- folder.src = eval(type).off.src;
- window.status = eval(type).alt;
- }
-